import { createBrowserRouter } from 'react-router-dom';
import Login from '@/pages/Login';
import { lazy } from 'react';

const DashBoard = lazy(() => import('@/pages/Dashboard'));

const routes = [
	{
		path: '/login',
		element: <Login />
	},
	{
		path: '/',
		element: <DashBoard />
	}
];

export const router = createBrowserRouter(routes);
